<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <title>eBPLS Business Permit and Licensing System</title>
        <meta name="Author" content=" PAARV ">
        <link href="stylesheets/default.css" rel="stylesheet" type="text/css">
<title></title>
</head>
<body onLoad="javascript: _FRM.permit_type.focus();">
<script language="Javascript">
	function CheckValues()
	{
		var _FRM = document._FRM;
		if (_FRM.permit_type.value == "") {
			alert("Enter Valid Permit Type!!");
			_FRM.permit_type.focus();
			_FRM.permit_type.select();
			return false;
		}
		if (_FRM.permit_header.value == "" || _FRM.permit_header.value == 0) {
			alert("Enter Valid Permit Header!!");
			_FRM.permit_header.focus();
			_FRM.permit_header.select();
			return false;
		}
		if (_FRM.permit_header.value.length > 10) {
			alert("Permit Header Exceeds Max Length!!");
			_FRM.permit_header.focus();
			_FRM.permit_header.select();
			return false;
		}
		if (isBlank(_FRM.permit_sequence.value) || isNaN(_FRM.permit_sequence.value) || _FRM.permit_sequence.value<0) {
			alert("Enter Valid Permit Sequence!!");
			_FRM.permit_sequence.focus();
			_FRM.permit_sequence.select();
			return false;
		}
		if (_FRM.permit_sequence.value.length > 11) {
			alert("Permit Sequence Exceeds Max Length!!");
			_FRM.permit_sequence.focus();
			_FRM.permit_sequence.select();
			return false;
		}
		
		
		_FRM.sb.value="Submit"
		_FRM.submit()
		return true;
	}
	function ClearValues()
	{
		var _FRM = document._FRM;
		_FRM.permit_type.value = "";
		_FRM.permit_header.value = "";
		_FRM.permit_sequence.value = "";
		_FRM.sb.value = "";	
		_FRM.bbo.value = "";
		alert("Transaction Cancelled!");
		_FRM.submit()
		return true;
	}

	function confdel(cc)
	{
		var _FRM = document._FRM;
		doyou = confirm("Record Will Be Deleted, Continue?");
			if (doyou==true) {
					_FRM.bbo.value = cc;
               		_FRM.confx.value = 1;
        	} else {
                	_FRM.confx.value=0;
                	return false;
        	}
              	_FRM.submit();
               	return true;
	}
</script>
<form action="index.php?part=4&class_type=Preference&selMode=<?php echo $selMode;?>&action_=8&itemEvent=1&data_item=0&orderbyasde=1" ENCTYPE="multipart/form-data" method="post" name="_FRM">
                                                                                                 
<input type=hidden name=part value="<?php echo $part;?>">
<input type=hidden name=class_type value="<?php echo $class_type;?>">
<input type=hidden name=selMode value="<?php echo $selMode;?>">
<input type=hidden name=bbo value="<?php echo $bbo;?>">
<input type=hidden name=confx value="<?php echo $confx;?>">
<input type=hidden name=sb>
<table border=0 width=100% align=center cellspacing=0 cellpadding=0>
<tr><td colspan=2 class=header align=center width=100%>REFERENCES</td></tr>
<tr>
        <td colspan=2 align=center>
</td>
</tr>
	<tr><td colspan=2 class=header2 align=center>Permit Number Format</td></tr>
	<tr width=100%>
		<td> &nbsp </td>
	</tr>
	<tr width=100%>
		<td> &nbsp </td>
	</tr>
	<tr width=100%>
		<td align=right valign=top> Permit Type : </td>
		<td align=left valign=top> &nbsp 
			<select name=permit_type>
				<option value='<?php if ($permit_type == "") { $permit_type = "Business"; } echo $permit_type;?>'><?php echo $permit_type;?>
				<option value='Business'>Business</option>
				<option value='Motorized'>Motorized</option>
				<option value='Franchise'>Franchise</option>
				<option value='Occupational'>Occupational</option>
				<option value='Fishery'>Fishery</option>
				<option value='Peddlers'>Peddlers</option>
			</select>
		<td> &nbsp </td>
	</tr>
	<tr width=100%>
		<td align=right valign=top> Permit Header : </td>
		<td align=left valign=top> &nbsp <input type=text align=left name=permit_header class=text180 value='<?php echo $permit_header; ?>' maxlength=10> <font class="def_label"> (Max 10 chars)</font></td>
		<td> &nbsp </td>
	</tr>
	<tr width=100%>
		<td align=right valign=top> Use Year : </td>
		<td align='left' valign=top> &nbsp;<input type=checkbox name='permit_date' align='left' valign=top value='ON' <? echo $permit_date_check;?>></td>
		<td> &nbsp </td>
	</tr>
	<tr width=100%>
		<td align=right valign=top> Permit Sequence : </td>
		<td align=left valign=top> &nbsp <input type=text name=permit_sequence class=text180 value='<?php echo $permit_sequence; ?>' maxlength=11> <font class="def_label"> (Max 11 chars)</font></td>
		<td> &nbsp </td>
	</tr>
</table>
<table align=center border=0 cellspacing=0 cellpadding=0 width=90%>
        <tr width=100%>
                <td align=center valign=top>&nbsp</td>
        </tr>
        <tr width=100%>
                <td align=center valign=top>
                        <input type=button value=Save name=SubmitButton onClick="javascript: CheckValues();">
                        <input type=Button value=Cancel onClick="javascript: ClearValues();">
                        <input type=Reset value=Reset onClick="javascript: _FRM.permit_type.focus();">
                        &nbsp<br><br>
                </td>
        </tr>
</table>
</form>
</body>
</html>
